package com.SunSoft.PhoneRemoteControl;

import android.os.Handler;
import android.os.Message;
import android.text.Editable;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.EditText;
import android.widget.TextView;
import java.util.ArrayList;
import java.util.List;
import org.apache.http.message.BasicNameValuePair;

final class ah
  implements View.OnClickListener
{
  public final void onClick(View paramView)
  {
    if (this.a.P)
    {
      this.a.an = new ArrayList();
      this.a.an.add(new BasicNameValuePair("txtUser_name", this.a.ae.getText().toString()));
      this.a.an.add(new BasicNameValuePair("txtPassword", this.a.af.getText().toString()));
      this.a.aX = this.a.ae.getText().toString();
      this.a.aY = this.a.af.getText().toString();
      paramView = this.a.ag.getText().toString();
      int i = 1;
      if (!(paramView.equals(this.a.aY)))
      {
        this.a.ah.setText(this.a.getString(2131099761));
        i = 0;
      }
      if ((paramView == null) || (paramView.equals("")))
      {
        this.a.ah.setText(this.a.getString(2131099759));
        i = 0;
      }
      if ((this.a.aY == null) || (this.a.aY.length() < 4))
      {
        this.a.ah.setText(this.a.getString(2131099760));
        i = 0;
      }
      if ((this.a.aX == null) || (this.a.aX.length() < 4))
      {
        this.a.ah.setText(this.a.getString(2131099763));
        i = 0;
      }
      if (i != 0)
      {
        this.a.ba = 2;
        this.a.bb = "http://www.tasogo.com/post_data.aspx";
        paramView = new Message();
        paramView.what = 5;
        this.a.ca.sendMessage(paramView);
        this.a.ah.setText("");
      }
      return;
    }
    this.a.a(2);
  }
}